using System;
using System.Collections.Generic;
using System.Text;

namespace first
{
    public class Cmp
    {
        public static int Largest(int[] list)
        {
            if (list.Length == 0)
            {
                throw new ArgumentException("Empty list");
            }
            int  max = Int32.MinValue;
            for (int i = 0; i < list.Length; i++)
            {
                if (list[i] > max)
                {
                    max = list[i];
                }
            }
            return max;
        }

    }
}
